<%@ page import="com.zuoye.text7.News3" %>
<%@ page import="java.util.List" %>
<%@ page import="com.zuoye.text7.NewsDao3" %>
<%@ page import="com.zuoye.text7.NewsService3" %>
<%@ page import="com.zuoye.text7.NewsServiceImpl3" %>
<%@ page import="com.zuoye.text7.NewsDaoImpl3" %>
<%@ page import="cn.entity.News2" %><%--
  Created by IntelliJ IDEA.
  User: 范军建
  Date: 2022/4/5
  Time: 10:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:useBean id="newsDao" class="cn.NewsDaoImpl.NewsDaoImpl2"></jsp:useBean>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%

    List<News2> newsList=newsDao.getNewsList();

%>
<div>
    <table>
        <%
            for(News2 news:newsList){
        %>
        <tr>
            <td>
                <%=news.getId()%>
            </td>

            <td>
                <%=news.getName()%>
            </td>


            <td>
                <%=news.getCreateDate()%>
            </td>
        </tr>
        <%
            }
        %>
    </table>
</div>


</body>
</html>
